#ifndef DVMAPEDITDIALOG_H
#define DVMAPEDITDIALOG_H

#include <QDialog>
#include "dvDatabaseController.h"
#include "dvDatabaseControllerUsable.h"

namespace Ui {
class dvMapEditDialog;
}

class dvMapEditDialog : public QDialog, public dvDatabaseControllerUsable
{
    Q_OBJECT
    
public:
    explicit dvMapEditDialog(QWidget *parent = 0);
    ~dvMapEditDialog();
    void Initialize();
    
private:
    Ui::dvMapEditDialog *ui;
    QTableView          *m_pTable;
    QSqlQueryModel      *m_pModel;

    void fillTable(QSqlQuery *query);

private slots:
    void clickedOk();
    void clickedCancel();
    void clickedAdd();
    void clickedEdit();
    void clickedDelete();
};

#endif // DVMAPEDITDIALOG_H
